<?php

use Caifenglei\AuthRbac\Http\Controllers\AuthController;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/

Route::middleware('web')->controller(AuthController::class)->group(function(){
    Route::get('/oauth/redirect', 'redirect_to_sso');
    Route::get('/oauth/callback', 'callback'); //供debug使用，线上使用前端URL
    Route::get('/oauth/logout', 'logout');
});
